import * as THREE from 'three'
// 返回灯光对象
var DirectionalLight = new THREE.DirectionalLight(0xeeeeee) //  添加了一个白色的平行光(颜色,光强)
DirectionalLight.position.set(10, 200, 100) //  设置光源位置
DirectionalLight.lookAt(new THREE.Vector3())
DirectionalLight.castShadow = true // 设置平行光投射投影
DirectionalLight.shadow.mapSize.height = 1024
DirectionalLight.shadow.mapSize.width = 1024

export { DirectionalLight }
